// 机构相关接口

import request from '@/utils/request'

// 获取树状机构信息
export function getInstitutionList() {
  return request({
    url: '/manager/business-hall/tree'
  })
}

// 获取机构详情
export function getInstitutionDetail(id) {
  return request({
    url: `/manager/business-hall/${id}`
  })
}

// 根据父id获取地址信息
export function getAddressMessage(parentId) {
  return request({
    url: '/manager/areas/children',
    params: { parentId }
  })
}

// 获取员工分页数据
export function getEmployeePage(params) {
  return request({
    url: '/manager/business-hall/user/page',
    params
  })
}
